package org.rk.core.domain.menu;

import org.rk.core.common.anno.FieldMeta;
import org.rk.core.common.anno.TableMeta;
import org.rk.core.common.bean.TreeBean;

@TableMeta(name = "core_admin_menu", catalog = "rk_user_manage")
public class CoreAdminMenu extends TreeBean{

	private static final long serialVersionUID = 1L;
	@FieldMeta(name="type",length=20,desc="")
	private String type;
	@FieldMeta(name="enabled",length=2,desc="")
	private String enabled;
	@FieldMeta(name="remark",length=200,desc="")
	private String remark;
	@FieldMeta(name="permId",length=20,desc="权限id")
	private Long permId;
	@FieldMeta(name="iconClass",length=50,desc="")
	private String iconClass;
	@FieldMeta(name="hUrl",length=300,desc="",isInsert=false,isUpdate=false,isSelect=false)
	private String hUrl;
	@FieldMeta(name="moduleCode",length=50,desc="")
	private String moduleCode;

	public void setIconClass(String iconClass){
		this.iconClass=iconClass;
	}

	public String getIconClass(){
		return iconClass;
	}

	public void setHUrl(String hUrl){
		this.hUrl=hUrl;
	}

	public String getHUrl(){
		return hUrl;
	}

	public void setModuleCode(String moduleCode){
		this.moduleCode=moduleCode;
	}

	public String getModuleCode(){
		return moduleCode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Long getPermId() {
		return permId;
	}

	public void setPermId(Long permId) {
		this.permId = permId;
	}

	public String gethUrl() {
		return hUrl;
	}

	public void sethUrl(String hUrl) {
		this.hUrl = hUrl;
	}

	public boolean equals(Object obj) {
		if (obj instanceof CoreAdminMenu) {
			CoreAdminMenu u = (CoreAdminMenu) obj;
			return super.getId().equals(u.getId());
		}
		return super.equals(obj);
	}
}
